Tx

constructor(connection: Connection, closeConnectionAfterTx: Boolean)(source)

Creates a new transaction instance with a specific database connection.

Parameters

connection

The reactive database connection used for the transaction.

closeConnectionAfterTx

Indicates whether the connection should be closed after the transaction is finalized.